package com.alibaba.citrus.cr.sales.plan.repository;

import com.alibaba.citrus.cr.sales.plan.repository.request.QuerySpecifiedDepthRepoRequest;
import com.epoch.app.bcorder.model.dto.OrganizationSDO;

import java.util.List;

/**
 * @author luyi
 * @date 2021/10/25 9:19 下午
 */
public interface SalesPlanOrganizationRepository {

    /**
     * 查询业务单元下所有部门
     * @param organizationId
     * @return
     */
    List<OrganizationSDO> queryOrganizationAllDeparment(String organizationId);

    /**
     * 获取指定深度的组织数据
     * @param request
     * @return
     */
    List<OrganizationSDO> querySpecifiedDepth(QuerySpecifiedDepthRepoRequest request);
}
